package com.ggj.business.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import java.io.Serializable;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author lu
 * @since 2017-03-16
 */
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 订单类型；1：格格家订单，2：格格团订单，3：格格团全球购订单，4：环球捕手订单，5：燕网订单，6：b2b订单，7：手Q钱包
     */
	private Integer type;
    /**
     * 同一批订单编号标识
     */
	@TableField("same_batch_number")
	private Long sameBatchNumber;
    /**
     * 合单批次编号，用于前台显示订单拆合
     */
	@TableField("batch_number")
	private Long batchNumber;
    /**
     * 订单编号，前端展示
     */
	private Long number;
    /**
     * 卖家id
     */
	@TableField("seller_id")
	private Integer sellerId;
    /**
     * 账号id
     */
	@TableField("account_id")
	private Integer accountId;
    /**
     * 账号使用积分
     */
	@TableField("account_point")
	private Integer accountPoint;
    /**
     * 账号优惠券id
     */
	@TableField("account_coupon_id")
	private Integer accountCouponId;
    /**
     * N元活动优惠金额
     */
	@TableField("activities_optional_part_price")
	private Float activitiesOptionalPartPrice;
    /**
     * 优惠券金额
     */
	@TableField("coupon_price")
	private Float couponPrice;
    /**
     * 活动满减金额
     */
	@TableField("activities_price")
	private Float activitiesPrice;
    /**
     * 会员卡满减金额
     */
	@TableField("club_card_manjian_price")
	private Float clubCardManjianPrice;
    /**
     * 实付金额
     */
	@TableField("real_price")
	private Float realPrice;
    /**
     * 客服调整金额，为正数，代表减少的价格
     */
	@TableField("adjust_price")
	private Float adjustPrice;
    /**
     * 收货地址id
     */
	@TableField("receive_address_id")
	private Integer receiveAddressId;
    /**
     * 订单商家id
     */
	@TableField("order_seller_id")
	private Integer orderSellerId;
    /**
     * 总价，包含运费
     */
	@TableField("total_price")
	private Float totalPrice;
    /**
     * 运费
     */
	@TableField("freight_money")
	private Integer freightMoney;
    /**
     * 实付税费
     */
	@TableField("total_duty_price")
	private Float totalDutyPrice;
    /**
     * 订单来源渠道id
     */
	@TableField("source_channel_id")
	private Integer sourceChannelId;
    /**
     * 付款渠道；1：银联，2：支付宝，3：微信
     */
	@TableField("pay_channel")
	private Integer payChannel;
    /**
     * app渠道；0[ios及web]、1[其他]、2[360]、3[小米]、4[91]、5[百度]、6[豌豆荚]、7[应用宝]、8[淘宝]、9[vivo]、10[官网]、11[移动网站]、12[搜狗]、13[安智]、14[苏宁易购]、15[华为]、16[广点通-原生]、17[广点通-FEED流]、18[今日头条])、19IOS马甲app
     */
	@TableField("app_channel")
	private Integer appChannel;
    /**
     * app版本
     */
	@TableField("app_version")
	private String appVersion;
    /**
     * 商家备注
     */
	private String remark;
    /**
     * 客服备注
     */
	private String remark2;
    /**
     * 订单状态；1：未付款，2：待发货，3：已发货，4：交易成功，5：用户取消（待退款团购），6：超时取消（已退款团购），7：团购进行中(团购)
     */
	private Integer status;
    /**
     * 后台导出状态；0：未导出，1：已导出
     */
	@TableField("operation_status")
	private Integer operationStatus;
    /**
     * 客服审单状态；1：待审核，2：审核通过，3：审核不通过
     */
	@TableField("check_status")
	private Integer checkStatus;
    /**
     * 付款时间
     */
	@TableField("pay_time")
	private Date payTime;
    /**
     * 发货时间
     */
	@TableField("send_time")
	private Date sendTime;
    /**
     * 发货超时时间
     */
	@TableField("expire_time")
	private Date expireTime;
    /**
     * 发货是否超时，1是，0否
     */
	@TableField("is_timeout")
	private Integer isTimeout;
    /**
     * 收货时间
     */
	@TableField("receive_time")
	private Date receiveTime;
    /**
     * 是否用户删除；0：否，1：是
     */
	@TableField("is_delete")
	private Integer isDelete;
    /**
     * 是否需要结算；0：否，1：是
     */
	@TableField("is_need_settlement")
	private Integer isNeedSettlement;
    /**
     * 是否结算；0：否，1：是
     */
	@TableField("is_settlement")
	private Integer isSettlement;
    /**
     * 订单结算时间
     */
	@TableField("settlement_time")
	private Date settlementTime;
    /**
     * 冻结状态；0：未冻结，1：已冻结，2：已解冻
     */
	@TableField("is_freeze")
	private Integer isFreeze;
    /**
     * 是否可用优惠券与积分；0：不可用，1：可用
     */
	@TableField("is_available_coupon")
	private Integer isAvailableCoupon;
    /**
     * 是否团购订单；0：否，1：是
     */
	@TableField("is_group")
	private Integer isGroup;
    /**
     * 是否积分商品订单；0：否，1：是
     */
	@TableField("is_member_order")
	private Integer isMemberOrder;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 更新时间
     */
	@TableField("update_time")
	private Date updateTime;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Long getSameBatchNumber() {
		return sameBatchNumber;
	}

	public void setSameBatchNumber(Long sameBatchNumber) {
		this.sameBatchNumber = sameBatchNumber;
	}

	public Long getBatchNumber() {
		return batchNumber;
	}

	public void setBatchNumber(Long batchNumber) {
		this.batchNumber = batchNumber;
	}

	public Long getNumber() {
		return number;
	}

	public void setNumber(Long number) {
		this.number = number;
	}

	public Integer getSellerId() {
		return sellerId;
	}

	public void setSellerId(Integer sellerId) {
		this.sellerId = sellerId;
	}

	public Integer getAccountId() {
		return accountId;
	}

	public void setAccountId(Integer accountId) {
		this.accountId = accountId;
	}

	public Integer getAccountPoint() {
		return accountPoint;
	}

	public void setAccountPoint(Integer accountPoint) {
		this.accountPoint = accountPoint;
	}

	public Integer getAccountCouponId() {
		return accountCouponId;
	}

	public void setAccountCouponId(Integer accountCouponId) {
		this.accountCouponId = accountCouponId;
	}

	public Float getActivitiesOptionalPartPrice() {
		return activitiesOptionalPartPrice;
	}

	public void setActivitiesOptionalPartPrice(Float activitiesOptionalPartPrice) {
		this.activitiesOptionalPartPrice = activitiesOptionalPartPrice;
	}

	public Float getCouponPrice() {
		return couponPrice;
	}

	public void setCouponPrice(Float couponPrice) {
		this.couponPrice = couponPrice;
	}

	public Float getActivitiesPrice() {
		return activitiesPrice;
	}

	public void setActivitiesPrice(Float activitiesPrice) {
		this.activitiesPrice = activitiesPrice;
	}

	public Float getClubCardManjianPrice() {
		return clubCardManjianPrice;
	}

	public void setClubCardManjianPrice(Float clubCardManjianPrice) {
		this.clubCardManjianPrice = clubCardManjianPrice;
	}

	public Float getRealPrice() {
		return realPrice;
	}

	public void setRealPrice(Float realPrice) {
		this.realPrice = realPrice;
	}

	public Float getAdjustPrice() {
		return adjustPrice;
	}

	public void setAdjustPrice(Float adjustPrice) {
		this.adjustPrice = adjustPrice;
	}

	public Integer getReceiveAddressId() {
		return receiveAddressId;
	}

	public void setReceiveAddressId(Integer receiveAddressId) {
		this.receiveAddressId = receiveAddressId;
	}

	public Integer getOrderSellerId() {
		return orderSellerId;
	}

	public void setOrderSellerId(Integer orderSellerId) {
		this.orderSellerId = orderSellerId;
	}

	public Float getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(Float totalPrice) {
		this.totalPrice = totalPrice;
	}

	public Integer getFreightMoney() {
		return freightMoney;
	}

	public void setFreightMoney(Integer freightMoney) {
		this.freightMoney = freightMoney;
	}

	public Float getTotalDutyPrice() {
		return totalDutyPrice;
	}

	public void setTotalDutyPrice(Float totalDutyPrice) {
		this.totalDutyPrice = totalDutyPrice;
	}

	public Integer getSourceChannelId() {
		return sourceChannelId;
	}

	public void setSourceChannelId(Integer sourceChannelId) {
		this.sourceChannelId = sourceChannelId;
	}

	public Integer getPayChannel() {
		return payChannel;
	}

	public void setPayChannel(Integer payChannel) {
		this.payChannel = payChannel;
	}

	public Integer getAppChannel() {
		return appChannel;
	}

	public void setAppChannel(Integer appChannel) {
		this.appChannel = appChannel;
	}

	public String getAppVersion() {
		return appVersion;
	}

	public void setAppVersion(String appVersion) {
		this.appVersion = appVersion;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getRemark2() {
		return remark2;
	}

	public void setRemark2(String remark2) {
		this.remark2 = remark2;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getOperationStatus() {
		return operationStatus;
	}

	public void setOperationStatus(Integer operationStatus) {
		this.operationStatus = operationStatus;
	}

	public Integer getCheckStatus() {
		return checkStatus;
	}

	public void setCheckStatus(Integer checkStatus) {
		this.checkStatus = checkStatus;
	}

	public Date getPayTime() {
		return payTime;
	}

	public void setPayTime(Date payTime) {
		this.payTime = payTime;
	}

	public Date getSendTime() {
		return sendTime;
	}

	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}

	public Date getExpireTime() {
		return expireTime;
	}

	public void setExpireTime(Date expireTime) {
		this.expireTime = expireTime;
	}

	public Integer getIsTimeout() {
		return isTimeout;
	}

	public void setIsTimeout(Integer isTimeout) {
		this.isTimeout = isTimeout;
	}

	public Date getReceiveTime() {
		return receiveTime;
	}

	public void setReceiveTime(Date receiveTime) {
		this.receiveTime = receiveTime;
	}

	public Integer getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}

	public Integer getIsNeedSettlement() {
		return isNeedSettlement;
	}

	public void setIsNeedSettlement(Integer isNeedSettlement) {
		this.isNeedSettlement = isNeedSettlement;
	}

	public Integer getIsSettlement() {
		return isSettlement;
	}

	public void setIsSettlement(Integer isSettlement) {
		this.isSettlement = isSettlement;
	}

	public Date getSettlementTime() {
		return settlementTime;
	}

	public void setSettlementTime(Date settlementTime) {
		this.settlementTime = settlementTime;
	}

	public Integer getIsFreeze() {
		return isFreeze;
	}

	public void setIsFreeze(Integer isFreeze) {
		this.isFreeze = isFreeze;
	}

	public Integer getIsAvailableCoupon() {
		return isAvailableCoupon;
	}

	public void setIsAvailableCoupon(Integer isAvailableCoupon) {
		this.isAvailableCoupon = isAvailableCoupon;
	}

	public Integer getIsGroup() {
		return isGroup;
	}

	public void setIsGroup(Integer isGroup) {
		this.isGroup = isGroup;
	}

	public Integer getIsMemberOrder() {
		return isMemberOrder;
	}

	public void setIsMemberOrder(Integer isMemberOrder) {
		this.isMemberOrder = isMemberOrder;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}
